package com.lzw.DailyAudit.service.dateAggregation_02.DailyAudit.mapper;


import com.baomidou.dynamic.datasource.annotation.DS;
import com.hooya.fa.eu.biz.DailyAudit.entity.dto.BsDataDTO;
import com.hooya.fa.eu.biz.DailyAudit.entity.dto.TempKcjlDailyHyDTO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author author
 * @since 2025-09-15
 */
@Mapper
public interface DailyTempPkpyMapper {

	@DS("fa_eu_daily")
    @Select("SELECT sum(sl) as sl, cpbh, place, belongs, date FROM temp_pkpy WHERE date = #{currentDate} GROUP BY cpbh,place,belongs,date")
	List<TempKcjlDailyHyDTO> getPkpyData(String currentDate);

    List<BsDataDTO> getBsData(@Param("currentDate") String currentDate);
}
